<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件下载</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-image: url('https://img.lwcat.cn/images/2024/04/13/6430ae9ad9.png');
            background-size: cover;
            background-position: center;
        }
        .download-box {
            background-color: rgba(255, 255, 255, 0.6);
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        input[type="text"] {
            border-radius: 16px;
            padding: 10px 15px;
            margin: 10px 0;
            border: none;
            background-color: rgba(255, 255, 255, 0.7);
            color: #333;
            font-size: 16px;
        }
        input[type="submit"] {
            border-radius: 16px;
            padding: 10px 20px;
            margin: 10px 0;
            border: none;
            background-color: rgba(255, 255, 255, 0.8);
            color: #333;
            font-size: 16px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: rgba(255, 255, 255, 0.9);
        }
    </style>

<script>
        function refreshCaptcha() {
            var captchaImg = document.getElementById('captchaImg');
            captchaImg.src = 'captcha.php?' + new Date().getTime();
        }
    </script>
    </head>
<body>
    <div class="download-box">
        <h1>文件下载</h1>
        <form action="download.php" method="post">
            <img id="captchaImg" src="captcha.php" alt="验证码" onclick="refreshCaptcha()" /><br>
            <input type="text" name="captcha" placeholder="请输入验证码" required><br>
            <input type="submit" value="下载文件">
        </form>
    </div>
    
</body>
</html>
